Skip to content

Encourage accessibility snapshots in Playwright results - #169

Merged
rgarcia merged 1 commit into
mainfrom
hypeship/clawbench-aria-snapshot
Aug 31, 2026
Merged

Encourage accessibility snapshots in Playwright results#169
rgarcia merged 1 commit into
mainfrom
hypeship/clawbench-aria-snapshot

Conversation

@rgarcia

@rgarcia rgarcia commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update the execute_playwright_code input description to ask every invocation for useful page state
  • recommend a region-scoped ariaSnapshot() after navigation and interaction
  • retain compact targeted values for read-only queries and discourage full DOM/body dumps

Why

Browser agents need the result of each Playwright call to decide the next action. Explicitly returning a compact accessibility snapshot keeps that state useful without producing a full-page payload.

This is intentionally separated from #162 so the ClawBench workflow can benchmark this description-only change against its base SHA.

Replay

Watch the successful Kernel MCP ClawBench replay for v2-1202-beauty-cart-quantity-theordinary at 4× speed.

The task requires the agent to find Multi-Peptide + HA Serum, open the correct product, change its quantity to 2, and add it to the cart. ClawBench intercepted the resulting Cart-AddProduct request and the strict judge verified that it contained the correct product and quantity. The run scored 1.0 for interception and strict reward.

This run exposed only Kernel MCP execute_playwright_code to Codex with GPT-5.6 Luna. Its source was the exact description-change commit 37273e3, and the trajectory used ariaSnapshot() in 11 browser calls. The published 51-second replay contains no credentials, signed Kernel URLs, session IDs, or private benchmark artifacts.

Test plan

  • bun test src/lib/mcp/register.test.ts
  • bunx tsc --noEmit
  • bunx prettier --check src/lib/mcp/tools/playwright.ts

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mcp Ready Ready Preview Aug 31, 2026 3:16pm

@rgarcia rgarcia changed the title Encourage useful Playwright state returns Encourage accessibility snapshots in Playwright results Aug 28, 2026
@rgarcia
rgarcia force-pushed the hypeship/clawbench-aria-snapshot branch from ace5e7a to 54ca49b Compare August 28, 2026 23:34
@rgarcia
rgarcia force-pushed the hypeship/clawbench-aria-snapshot branch from 54ca49b to a2bcbcc Compare August 29, 2026 00:35
Base automatically changed from hypeship/harbor-mcp-benchmark to main August 30, 2026 18:23
@rgarcia
rgarcia force-pushed the hypeship/clawbench-aria-snapshot branch 2 times, most recently from 474b3b3 to 2466301 Compare August 30, 2026 18:23
@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown

ClawBench · PR #169 (edfec5a) vs merge base (e96298a)

Arm Configuration Lenient Strict Intercepted Infra Ungraded Kernel MCP valid Median calls Median duration Cost
candidate codex@0.120.0 · gpt-5.6-luna · config 14a94e93 9/129 5/129 14/129 99 0 30/30 34 0s $1.4905
baseline codex@0.120.0 · gpt-5.6-luna · config 14a94e93 11/129 3/129 15/129 101 0 28/28 31 0s $1.4406

Candidate minus baseline: -2 lenient, +2 strict, -1 intercepted.

Open the Braintrust experiment

Open the GitHub Actions run

Lenient reward is the primary ClawBench score. Infrastructure failures remain in the intended-task denominator.

@rgarcia
rgarcia requested a review from bmsaadat August 31, 2026 15:43
@rgarcia

rgarcia commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

@bmsaadat the full 129-task candidate-vs-base run completed on the latest head. Candidate versus baseline: -2 lenient, +2 strict, and -1 intercepted; all graded trials passed exact Kernel MCP session validation. The benchmark comment links the 258-row Braintrust experiment. Requesting review for the one-line tool-description change.

@rgarcia
rgarcia merged commit 7454ab2 into main Aug 31, 2026
10 checks passed
@rgarcia
rgarcia deleted the hypeship/clawbench-aria-snapshot branch August 31, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants